package com.blog.dao;

import org.springframework.data.jpa.repository.JpaRepository;

import com.blog.domain.Post;

/**
 * Created by youpengfei on 15/2/9.
 */
public interface PostDAO extends JpaRepository<Post, Long> {
    /**
     * 根据名称获取title
     *
     * @param title 标题
     *
     * @return
     */
    public Post findByTitle(String title);

}
